package com.example.cash.craft.pojo.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "新增订单参数Class")
public class OrderAddNewParam implements Serializable {

    @Schema(description = "使用积分数量", example = "100", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer rewardPointsUsed;

    @Schema(description = "商品ID列表", example = "2, 4, 6", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long[] productIdList;

    @Schema(description = "数量列表", example = "5, 10, 20", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer[] quantityList;

}
